import request from "@/apis/request";

export const getAdmins = ()=>{
    return request({
        url:'admin/getAllAdmin',
        method:'get'
    })
}
export  const addAdmin=({nickname,username,password})=>{
    return request({
        url:'/admin/addAdmin',
        method:'post',
        data:{
            nickname,
            username,
            password
        }
    })
}
export const deleteAdminByID = (adminId)=>{
    return request({
        url:'/admin/deleteAdmin',
        method:'get',
        params:{
            adminId
        }
    })
}
